package com.springapp.mvc;

import com.springapp.mvc.dm.EnterMain;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
	@RequestMapping("index")
	 public String printWelcome(ModelMap model) {
		model.addAttribute("message", "Hello world!");
		return "hello";
	}


	@RequestMapping("start")
	public String start(ModelMap model) {
		EnterMain enterMain = new EnterMain();
		enterMain.start();
		return "start";
	}
}